#!/usr/bin/env python
# -*- coding=utf-8 -*-
from tornado import web as tor_web
from tornado import ioloop
from tornado import httpserver


class IndexHandler(tor_web.RequestHandler):
    """
    IndexHandler
    """

    def get(self):
        self.write("hello tornado!")


if __name__ == '__main__':
    app = tor_web.Application([
        (r"/", IndexHandler),
    ])

    http_server = httpserver.HTTPServer(app)
    http_server.listen(9000)

    ioloop.IOLoop.current().start()
